Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


PresentationChanged

The PresentationChanged method is called to notify this part that the presentation of one of its display frames has changed.

void PresentationChanged (in ODFrame frame);
frame
A reference to a display frame for this part.
DISCUSSION
OpenDoc calls this method when this part's display frame changes its presentation.

Your part's PresentationChanged method should examine the new presentation using its frame's GetPresentation method. It should then display itself in the specified display frame according to the indicated presentation. If your part does not support the requested presentation, it should instead pick a presentation that it can support and then call its frame's SetPresentation method to update the presentation in the frame.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFrame
The specified frame is not a display frame of this part.
SEE ALSO
The ODFrame::ChangePresentation method (page 310).
The ODFrame::SetPresentation method (page 337).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Presentation" on page 156 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help